<header id="header" role="banner">

	<nav class="aui-header aui-dropdown2-trigger-group" role="navigation" id="test1">
              <div class="aui-header-primary">
                  <h1 id="logo" class="aui-header-logo aui-header-logo-aui">
                      <a href="<?= $this->config->base_url() ?>index.php/home" aria-owns="dropdown2-header-logo" aria-haspopup="false"><span class="aui-header-logo-device">OREGANO</span></a>
                  </h1>

                   <?php /*
                  <ul class="aui-nav">
                      <li><a href="#dropdown2-manage" aria-owns="dropdown2-manage" aria-haspopup="true" class="aui-dropdown2-trigger">Account Management<span class="aui-icon-dropdown"></span></a></li>
                  </ul> */
                   ?>
              </div>


               <div class="aui-header-secondary">
                  <ul class="aui-nav">
                      <li>
                          <form action="/foo" method="post" class="aui-quicksearch">
                              <label for="quicksearchid" class="assistive">Quick Search</label>
                              <input id="quicksearchid" class="search" type="text" placeholder="Quick Search" name="quicksearchname">
                          </form>
                      </li>
                      <li>
                       <a href="#dropdown2-user" aria-owns="dropdown2-user" aria-haspopup="true" class="aui-dropdown2-trigger">
                       <?php

					      $username = $this->session->userdata(LOGGEDUSERNAME);
					      if($username) echo $username; else echo "Guest";

					   ?><span class="aui-icon-dropdown"></span></a></li>
                      <li>
                          <a id="link_to_admin" href="<?= $this->config->base_url() ?>index.php/admin/" aria-owns="dropdown2-header8">
                              Administration
                          </a>
                      </li>
                  </ul>
              </div>

              <div id="dropdown2-user" class="aui-dropdown2 aui-list aui-style-default">
                   <ul class="aui-list-section  aui-first">
                        <li><a href="<?= $this->config->base_url() ?>index.php/user/edit_profile">Edit Profile</a></li>
                        <li><a href="<?= $this->config->base_url() ?>index.php/user/change_pass">Change Password</a></li>
                   </ul>
                  <ul class="aui-list-section  aui-last">
                        <li><a href="<?= $this->config->base_url() ?>index.php/user/logout">Logout</a></li>
                  </ul>
              </div>
	</nav>
    
    
</header>
